﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CrossQuery
{
    public class TypeGenerator
    {
        public static IType getInstance(string type)
        {
            switch (type)
            {
                case "Date":
                    return new DateType();
                case "Area":
                    return new ComboType(SysInfo.Constant.SQL_Province);
                default:
                    return null;
            }
        }
    }
}
